transform: Add optimization for common case
authorBenjamin Otte <otte@redhat.com>
Wed, 19 Feb 2020 23:02:19 +0000 (00:02 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 21 Feb 2020 17:19:16 +0000 (18:19 +0100)
commit41ef6e9fa5c22d3a889f82f5fe96f633cdd6959d
treea05f64fa1378760629494de28d069e010a4a6f80
parentd7d7957b04a1afdb1008cad4512c25e5c2e711a8
transform: Add optimization for common case

Transforming identity by an other transform does not mean we need to
painstakingly apply the individual steps of other to construct a new
transform, it means we can just return other.

Or in math terms:
  I * B = B
so just return B.
gsk/gsktransform.c